package com.ilearn.iodata.iolingo.service.processor.core.database;

import com.ilearn.iodata.iolingo.service.metadata.api.GenericDataBaseFunction;
import org.apache.olingo.server.api.ODataApplicationException;
import org.apache.olingo.server.api.uri.UriResource;

import javax.persistence.EntityManager;
import java.util.List;

public interface GenericODataDatabaseTableFunction {

  <T> List<T> executeFunctionQuery(final List<UriResource> uriResourceParts, final GenericDataBaseFunction jpaFunction,
                                   final Class<T> resultClass, final EntityManager em) throws ODataApplicationException;
}
